package com.hr.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hr.entity.Users;

import java.util.List;

public interface UsersService {
    /**
     * 查询用户列表
     * @return
     */
    Page<Users> queryList(Page<Users> page);

    /**
     * 保存/修改用户
     * @param user
     * @return
     */
    boolean save(Users user);

    /**
     * 根据id删除用户
     * @param uid
     * @return
     */
    boolean delete(Integer uid);

    /**
     * 根据uid查询当前用户
     * @param uid
     * @return
     */
    Users queryById(Integer uid);
}
